<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title></title> 
<%@include file="../../commons/_meta.jsp"%>
<base href="${ctx}">  
<meta charset="utf-8"> 
<link rel="stylesheet" href="${ctx}assets/plugins/pure/pure-min.css" media="all" />
<script type="text/javascript">
debugs("${ctx} --- user-resetpwd.jsp");
function validateForm(){
    if(empty($("#password").val())){
    	alertError('<fmt:message key="Please.enter.the.original.password"/>');
		return false;
    }
    if(empty($("#passwordNew").val())){
    	alertError('<fmt:message key="Please.enter.a.news.password"/>');
		return false;
    }
    if(empty($("#passwordNewRepet").val())){
    	alertError('<fmt:message key="Please.enter.the.repeat.news.password"/>');
		return false;
    }

    $("#forms").submit();   
}

function chooseparent(title,url,id,w,h){
	layer_show(title,url,w,h);
}
</script> 
</head>
<body >
<form class="pure-form pure-form-aligned" id="forms" method="post" action="${ctx}admin/adminuser/resetpwd">
    <fieldset>
        <div class="pure-control-group">
            <label for="password"><fmt:message key='The.original.password'/>:<span class="error">*</span></label> 
            <input id="password" name="password" type="password"  placeholder="" value="" />
        </div> 
        <div class="pure-control-group">
            <label for="passwordNew"><fmt:message key='New.Password'/>:<span class="error">*</span></label> 
            <input id="passwordNew" name="passwordNew" type="password"  placeholder="" value="" />
        </div>
        <div class="pure-control-group">
            <label for="passwordNewRepet"><fmt:message key='Please.enter.the.repeat.news.password'/>:<span class="error">*</span></label> 
            <input id="passwordNewRepet" name="passwordNewRepet" type="password"  placeholder="" value="" />
        </div>
        <div class="pure-controls">
	        <div class="col-md-3 center">
				<button class="layui-btn  layui-btn-small" type="button" onclick="validateForm()">
					<fmt:message key="Modify.the"/>&nbsp;<i class="fa fa-floppy-o"></i>
				</button>
			</div> 
        </div>
    </fieldset>
</form>

	<!-- 页尾，提示消息 -->
	<jsp:include page="../../commons/_foot_message.jsp"></jsp:include> 
	
	<script>
		jQuery(document).ready(function() {
			var webStatust = $("#webStatus").html();
			if(empty(webStatust)){
				return ;
			}else if(webStatust == 200) {
				parent.listFormPageSearch(1);
			}
		});
	</script> 
</body>
</html>